Feature: Posts
Scenarios
|
Chart |
Status Progress |
||||
|---|---|---|---|---|---|
|
1
|
|
||||
| Total duration: | |||||
| 1m 39.586s |
Scenario: Como usuario administrador quiero modificar un post ya publicado para después editar su contenido
Before
0m 1.890s
Given
I navigate to page "http://localhost:2368/ghost/#/signin"
0m 1.949s
And
I wait for 5 seconds
0m 5.497s
And
I enter email "<USERNAME2>"
0m 0.820s
And
I wait for 1 seconds
0m 1.687s
And
I enter password "<PASSWORD2>"
0m 0.630s
And
I wait for 1 seconds
0m 1.525s
And
I click sign in button with selector "button[data-test-button='sign-in']"
0m 0.671s
And
I wait for 7 seconds
0m 7.665s
When
I go to the tags section with selector "a[data-test-nav='tags']"
0m 0.758s
And
I wait for 1 seconds
0m 1.537s
And
I click new tag button with selector "a.ember-view.gh-btn.gh-btn-primary"
0m 1.024s
And
I wait for 1 seconds
0m 1.574s
And
I enter title "$name_tagTitle" into field with selector "input[id='tag-name']"
0m 0.687s
And
I wait for 1 seconds
0m 1.606s
And
I click in the save button
0m 0.556s
And
I wait for 1 seconds
0m 1.476s
And
I go back to the tags section clicking the tags button with selector "a[data-test-nav='tags']"
0m 0.646s
And
I wait for 1 seconds
0m 1.599s
And
I click the new tag in order to edit it
0m 0.535s
And
I wait for 1 seconds
0m 1.552s
And
I enter title "$name_postTitleModified" into field with selector "textarea[data-test-editor-title-input]"
0m 3.647s
+ Show Error
Error: Can't call setValue on element with selector "textarea[data-test-editor-title-input]" because element wasn't found
at implicitWait (D:\MISO\Ciclo 2\Pruebas automatizadas de software\Semana 5\the-software-design-company\Entrega-semana-5\kraken\node_modules\webdriverio\build\utils\implicitWait.js:34:19)
at async Element.elementErrorHandlerCallbackFn (D:\MISO\Ciclo 2\Pruebas automatizadas de software\Semana 5\the-software-design-company\Entrega-semana-5\kraken\node_modules\webdriverio\build\middlewares.js:20:29)
at async Element.wrapCommandFn (D:\MISO\Ciclo 2\Pruebas automatizadas de software\Semana 5\the-software-design-company\Entrega-semana-5\kraken\node_modules\@wdio\utils\build\shim.js:136:29)
at async KrakenWorld.<anonymous> (D:\MISO\Ciclo 2\Pruebas automatizadas de software\Semana 5\the-software-design-company\Entrega-semana-5\kraken\features\web\step_definitions\step_tags.js:26:5)
And
I wait for 1 seconds
0m 0.000s
Then
I click in the save button
0m 0.000s
And
I wait for 1 seconds
0m 0.000s
And
I validate that the title of the post was modified successfully with "$$name_postTitleModified"
0m 0.000s
And
I And I go back to the tags section clicking the tags button with selector "a[data-test-nav='tags']"
0m 0.000s
And
I wait for 1 seconds
0m 0.000s
And
I send a signal to user 2 containing "Scenario1 complete"
0m 0.000s
After
0m 0.055s
Screenshots
Before
NO IMAGE AVAILABLE
Given
I navigate to page "http://localhost:2368/ghost/#/signin"
And
I wait for 5 seconds
And
I enter email "<USERNAME2>"
And
I wait for 1 seconds
And
I enter password "<PASSWORD2>"
And
I wait for 1 seconds
And
I click sign in button with selector "button[data-test-button='sign-in']"
And
I wait for 7 seconds
When
I go to the tags section with selector "a[data-test-nav='tags']"
And
I wait for 1 seconds
And
I click new tag button with selector "a.ember-view.gh-btn.gh-btn-primary"
And
I wait for 1 seconds
And
I enter title "$name_tagTitle" into field with selector "input[id='tag-name']"
And
I wait for 1 seconds
And
I click in the save button
And
I wait for 1 seconds
And
I go back to the tags section clicking the tags button with selector "a[data-test-nav='tags']"
And
I wait for 1 seconds
And
I click the new tag in order to edit it
And
I wait for 1 seconds
And
I enter title "$name_postTitleModified" into field with selector "textarea[data-test-editor-title-input]"
And
I wait for 1 seconds
NO IMAGE AVAILABLE
Then
I click in the save button
NO IMAGE AVAILABLE
And
I wait for 1 seconds
NO IMAGE AVAILABLE
And
I validate that the title of the post was modified successfully with "$$name_postTitleModified"
NO IMAGE AVAILABLE
And
I And I go back to the tags section clicking the tags button with selector "a[data-test-nav='tags']"
NO IMAGE AVAILABLE
And
I wait for 1 seconds
NO IMAGE AVAILABLE
And
I send a signal to user 2 containing "Scenario1 complete"
NO IMAGE AVAILABLE
After
NO IMAGE AVAILABLE